package com.ldzy.entity;

import com.ldzy.dao.UserDao;
import com.ldzy.pojo.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Repository;

@Repository
public class UserDaoInpl implements UserDao {
   @Autowired
    private  User user;
    public void save() {
        System.out.println("正在执行dao层的sql语句，读写数据表，读取出来，用户信息："+user.toString());
    }
    private  User readUserTable(){
        return  user;
    }
}
